package Bank;

public class Bank {
    public String account= "";
    private static int number =10000;
    private String password;
    private double depositAmount;
    public static double rate;
    public static double amountMin;

    static {
        rate =0.013;
        amountMin = 10;
        System.out.println("静态代码块");
    }
    {
     number+=1;
     account+=number;
     System.out.println("实例代码块");
    }
    public Bank(){

    }
    public Bank(String password,double depositAmount){
        this.password = password;
        this.depositAmount = depositAmount;
    }
    public void show(){
        System.out.println("账号"+account+"存款金额为"+depositAmount);
    }
}
